<?php
if(!empty($_POST['judul'] && !empty($_POST['pengirim'] && !empty($_POST['email'] && !empty($_POST['pesan']
{ 
    //alamat email tujuan bisa anda sesuaikan dengan email anda
    $tujuan = "nnicola1945@gmail.com";
    $judul = $_POST['judul'];
    $pesan = $_POST['pesan'];
    $pengirim=$_POST['pengirim'];
    $header = "From:$pengrim \r\n";
    $kirim = mail ($tujuan,$judul,$pesan,$header);
    if( $kirim == true ) 
    {
        echo "Pesan berhasil terkirim";
    }
    else
    {
        echo "Pesan gagal terkirim";
    }
}
?>
<table width="500">
  <form name="kontak" method="post" action="">
    <tr>
      <td>First Name</td>
      <td><input name="judul" id="judul" type="text" size="40" required="true"></td>
    </tr>
    <tr>
      <td>Last Name</td>
      <td><input name="pengirim" type="text" id="pengirim" size="30" required="true"></td>
    </tr>
    <tr>
      <td><p>Email</p>      </td>
      <td><input name="email" type="text" id="email" size="30" required="true"></td>
    </tr>
    <tr>
      <td>Title/Link Broken Movie</td>
      <td><textarea name="pesan" cols="40" rows="5" id="pesan" required="true"></textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="btnKirim" value="Send" id="btnKirim">
      <input type="reset" name="btnUlangi" id="button" value="Retry"></td>
    </tr>
  </form>